const express = require("express");
const router = express.Router();

const {
    innovationData,
    innMyHolding,
    innHistoryHolding,
    innCurrentComm,
    innCommHistory,
    innTransactionRecord,
} = require("../../data/mockData.js");

router.get("/data/basic/innovation", (req, res) => {
    res.success({ data: innovationData });
});

// 我的持仓
router.get("/innovation/my/holding", (req, res) => {
    res.success({ data: innMyHolding, message: '我的持仓' });
});

// 历史仓位
router.get("/innovation/history/holding", (req, res) => {
    res.success({ data: innHistoryHolding, message: '历史仓位' });
});

// 当前委托
router.get("/innovation/current/commission", (req, res) => {
    res.success({ data: innCurrentComm, message: '当前委托' });
});

// 委托历史
router.get("/innovation/commission/history", (req, res) => {
    res.success({ data: innCommHistory, message: '委托历史' });
});

// 成交记录
router.get("/innovation/transaction/record", (req, res) => {
    res.success({ data: innTransactionRecord, message: '成交记录' });
});

module.exports = router;
